package com.huike.xingxing.bean;

import java.util.List;

public class Message {


    /**
     * code : 1
     * msg : 数据
     * time : 1583056153
     * data : [{"id":1,"message":"你好","send_uid":2,"authtype":"student","created_at":"2020-03-01 17:24:06","to_uid":3},{"id":2,"message":"hello","send_uid":3,"authtype":"mom","created_at":"2020-03-01 17:24:21","to_uid":2}]
     */

    private int code;
    private String msg;
    private String time;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 1
         * message : 你好
         * send_uid : 2
         * authtype : student
         * created_at : 2020-03-01 17:24:06
         * to_uid : 3
         */

        private int id;
        private String message;
        private int send_uid;
        private String authtype;
        private String created_at;
        private int to_uid;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public int getSend_uid() {
            return send_uid;
        }

        public void setSend_uid(int send_uid) {
            this.send_uid = send_uid;
        }

        public String getAuthtype() {
            return authtype;
        }

        public void setAuthtype(String authtype) {
            this.authtype = authtype;
        }

        public String getCreated_at() {
            return created_at;
        }

        public void setCreated_at(String created_at) {
            this.created_at = created_at;
        }

        public int getTo_uid() {
            return to_uid;
        }

        public void setTo_uid(int to_uid) {
            this.to_uid = to_uid;
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "id=" + id +
                    ", message='" + message + '\'' +
                    ", send_uid=" + send_uid +
                    ", authtype='" + authtype + '\'' +
                    ", created_at='" + created_at + '\'' +
                    ", to_uid=" + to_uid +
                    '}';
        }
    }
}
